<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/reportProblem.do"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<HTML><HEAD><TITLE>ChipTrac - Send Mail to Admin</TITLE>

<SCRIPT language='javascript'>

function sendMail() 
{
    document.reportProblemForm.submit();
}

</SCRIPT>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type='text/css' rel=stylesheet></HEAD>

<BODY>

<html:form name='reportProblemForm' type='com.scalar.chiptrack.users.form.ReportProblemForm' action='/reportProblem.do?action=sendMail'>
<html:hidden name='reportProblemForm' property='to'/>
<html:hidden name='reportProblemForm' property='toName'/>
<html:hidden name='reportProblemForm' property='from'/>
<html:hidden name='reportProblemForm' property='fromName'/>

<table width='100%' cellpadding='0' cellspacing='6' class='NArialL' align=center border='0' bgcolor='#FFFFDD'>

    <tr><td colspan='3' align=center><font class='NArialW'><font color='#993333'><u>Problem Reporting</u></font></font></td></tr>

    <tr>
        <td width='20%'>&nbsp;</td>
        <td colspan='2'><chiptrack:info styleClass='NArialL'/></td>
    </tr>

    <tr>
        <td width='20%'>&nbsp;</td>
        <td colspan='2'><chiptrack:errors styleClass='NArialL'/></td>
    </tr>

    <tr>
        <td width='20%'>&nbsp;</td>
        <td>From: </td>
        <td>
            <bean:write name='reportProblemForm' property='fromName'/>
           (<bean:write name='reportProblemForm' property='from'/>)
        </td>
    </tr>

    <tr>
        <td width='20%'>&nbsp;</td>
        <td>To: </td>
        <td>
            <bean:write name='reportProblemForm' property='toName'/>
           (<bean:write name='reportProblemForm' property='to'/>)
        </td>
    </tr>

    <tr>
        <td width='20%'>&nbsp;</td>
        <td>Subject: </td>
        <td><html:text name='reportProblemForm' property='subject' size='30' maxlength='40' styleClass='txfield'/></td>
    </tr>

    <tr>
        <td width='20%'>&nbsp;</td>
        <td colspan='2'>Message: </td>
    </tr>

    <tr>
        <td width='20%'>&nbsp;</td>
        <td colspan='2'><html:textarea name='reportProblemForm' property='message' rows='6' cols='70' styleClass='txfield'/></td>
    </tr>

    <tr><td colspan='3' align=center>
        <br><br>
        <a href="javascript:sendMail()"><img onMouseOver="window.status='Click here send a mail';return true"  border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="javascript:window.close();"><img onMouseOver="window.status='Click here to close this window';return true"  border="0" src="<%=chipTracContext%>/jsp/includes/images/cancel.gif" width="53" height="17"></a>
        <br><br><br>
        <a href="javascript:window.close();" onMouseOver="window.status='Click here to close this window';return true">[close this window]</a>
    </td></tr>

    <tr><td colspan='3' align=center><br><br></td></tr>

</table>

</html:form>

</body>
</html>
